package com.mallsite.modules.shop.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.mallsite.modules.shop.dao.ShopDao;
import com.mallsite.modules.shop.entity.Shop;

/**
 * 会员用户表Service
 * @author ruyang
 * @version 2020-11-30
 */
@Service
@Transactional(readOnly=true)
public class ShopService extends CrudService<ShopDao, Shop> {
	
	/**
	 * 获取单条数据
	 * @param Shop
	 * @return
	 */
	@Override
	public Shop get(Shop shop) {
		return super.get(shop);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param Shop
	 * @return
	 */
	@Override
	public Page<Shop> findPage(Page<Shop> page, Shop shop) {
		return super.findPage(page, shop);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param Shop
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(Shop shop) {
		super.save(shop);
	}
	
	/**
	 * 更新状态
	 * @param Shop
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(Shop shop) {
		super.updateStatus(shop);
	}
	
	/**
	 * 删除数据
	 * @param Shop
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(Shop shop) {
		super.delete(shop);
	}
	
}